/*
 * ShapeReader.h
 *
 *  Created on: 2009/02/17
 *      Author: Yongshik Cho
 */

#ifndef SHAPEREADER_H_
#define SHAPEREADER_H_

#include "../ShapeObject.h"
#include "../RenderObjectContainer.h"
#include <tinyxml.h>


class ShapeReader
{
public:
	static const std::string _LINESTYLE_TAG;
	static const std::string _FILLSTYLE_TAG;
	static const std::string _LINECOLOR_TAG;
	static const std::string _FILLCOLOR_TAG;
	static const std::string _LINEWIDTH_TAG;

	static const std::string _LINE_NONE_TAG;
	static const std::string _LINE_SOLID_TAG;
	static const std::string _FILL_NONE_TAG;
	static const std::string _FILL_SOLID_TAG;

public:
	static ShapeObject* parse(TiXmlElement* element, RenderObjectContainer* roc);
	static void parseAttachment(TiXmlElement* element, Renderable* renderable);
	static void parseScripts(TiXmlElement* element, ShapeObject* shape);
};

#endif /* SHAPEREADER_H_ */
